package cn.mysource.org.aop;

import cn.mysource.org.domain.Department;
import cn.mysource.org.mapper.DeptMapper;
import lombok.extern.slf4j.Slf4j;
import org.apache.ibatis.binding.MapperMethod;
import org.apache.ibatis.javassist.bytecode.SignatureAttribute;
import org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.lang.reflect.Method;


@Component
@Slf4j
public class DeptManager {
//
//    @Autowired
//    private DeptMapper mapper;
//
//    @Pointcut("@annotation(cn.mysource.aop.DeptAop)")
//    public void pointcut(){}
//
//    @Around("pointcut()")
//    public Object around(ProceedingJoinPoint pjp) throws Throwable{
//        Department department = new Department();
//       MethodSignature methodSignature = (MethodSignature) pjp.getSignature;
//      Method method = MethodSignature.getMethod();
//
//      DeptAop deptAop = method.getAnnotation();
//      String name = DeptAop.name();
//      log.info("方法名称：{}",methodName);


//    }




}
